import { httpServe } from "@/http/index.js";

// 登录
//  export const loginPost = (path,data)=>httpServe(path,{},'post',data);
export const loginPost = (path='',data={})=>httpServe({path,method:'post',data});
//  用户列表
// export const usersGet =(path,params)=>httpServe(path,params)
export const usersGet =(path='',params={})=>httpServe({path,params})
// 获取左侧菜单列表
// export const menusGet=(path,params)=>httpServe(path,params)
export const menusGet=(path='',params={})=>httpServe({path,params})
// 添加用户
// export const addusersPost = (path='',data={})=>httpServe(path,{},'post',data);
export const addusersPost = (path='',data={})=>httpServe({path,method:'post',data});
// 删除用户
export const usersDelete = (path='')=>httpServe({path,method:'delete'});
// 修改用户信息
export const usersPut = (path='',data={})=>httpServe({path,method:'put',data})
//可视化数据
export const reportsGet = (path='',params={})=>httpServe({path,params})
//角色权限列表
export const rolesGet=(path='',params={})=>httpServe({path,params})




